const Index = ({ database, table_name, e, tableRef, data }) => {
	e.stopPropagation()
	window.$formModalRef().open({
		modal:{
			title 	: <span>修改字段【<b className='c3 ar'>{data.Field}</b>】名称</span>,
			width 	: '35%',
		},
		form: {
			labelWidth: 's5',
			// api: 'mysql/structure/mod_field_name',
			api: 'mysql/structure/mod_field',
			way:'put',
			infoApi : false,
			param: { database, table_name, change:true, ...data },
			data: [
				{ label: '字段名', name:'Field', disabled:1 },
				{ label: '类型', name:'Type', disabled:1 },
				{ label: '重命名', name:'name', r:1 },
			],
			onOk : () => {
				window.$.ref(tableRef).tableRef().search({ scroll:0 })
			}
		}
	})
}
export default Index